package flex.cc.nursing.dto.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.PastOrPresent;
import javax.validation.constraints.Size;

/**
 * ClassName: RequestCommonDto
 * Description: 请求头
 * Date: 2021/12/5 21:04 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Setter
@Getter
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel("请求头")
public class RequestHead {

    /**
     * 交易流水号
     */
    @Size(min = 25, max = 25)
    @ApiModelProperty(value = "交易流水号", required = true)
    private String transNo;
    /**
     * 请求方身份标识
     */
    @NotBlank
    @ApiModelProperty(value = "请求方身份标识", required = true)
    private String reqId;

    /**
     * 接口请求时间
     */
    @PastOrPresent
    @ApiModelProperty(value = "接口请求时间", required = true)
    private String reqTime;

    /**
     * 接口版本
     */
    @NotBlank
    @ApiModelProperty(value = "接口版本", required = true)
    private String verNo;
}
